from tortoise import fields

from .base import BaseModel, TimestampMixin


class RotorType(BaseModel, TimestampMixin):
    """旋翼类型"""

    name = fields.CharField(max_length=20, unique=True, description="旋翼类型名称", index=True)
    preset_speed = fields.IntField(description="预设转速")
    desc = fields.CharField(max_length=500, null=True, description="描述")

    class Meta:
        table = "rotor_type"
        table_description = "旋翼类型表" 